//
//  Common.swift
//  Weibo2
//
//  Created by teacher on 16/11/15.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

let accountPath = (NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last! as NSString).appendingPathComponent("account.plist")

//网络请求接口
let urlFocus =          "http://iosapi.itcast.cn/loveBeen/focus.json.php"
let urlFirstSell =      "http://iosapi.itcast.cn/loveBeen/firstSell.json.php"
let urlSupermarket =    "http://iosapi.itcast.cn/loveBeen/supermarket.json.php"



//MARK: 随机色
func randomColor() -> UIColor {
    let r = CGFloat(arc4random() % 256) / 255.0
    let g = CGFloat(arc4random() % 256) / 255.0
    let b = CGFloat(arc4random() % 256) / 255.0
    return UIColor(red: r, green:g, blue: b, alpha: 1)

}
//通知
let kAlertNotification = "alertNotification"
let kSellFastIncreaseActionNotification = "sellFastIncreaseActionNotification"
let kProductIncreaseActionNotification = "ProductIncreaseActionNotification"
let kSellFastReduceActionNotification = "sellFastReduceActionNotification"
let kProductReduceActionNotification = "ProductReduceActionNotification"

let kProductActionNotification = "productActionNotification"
let kSellFastActionNotification = "sellFastActionNotification"
let AddBtnNotification = "AddBtnNotification"
let ReduceBtnNotification = "ReduceBtnNotification"
//首页底部标题通知
let tapTitleLabelNotification = "tapTitleLabelNotification"
//监听首页 count 值变化的通知
let SmallViewNotification = "smallViewNotification"

//网络状态
let errorTip = "世界上最遥远的距离就是没有网络"
//屏幕的尺寸信息
let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height
let navBarHeight: CGFloat = 64


//Home 属性
let HotViewMargin: CGFloat = 8
let HomeCollectionViewCellMargin: CGFloat = 8
let CollectionHeaderViewHeigth:CGFloat = 20
let CollectionFooterViewHeigth:CGFloat = 60
let cycleScrollViewHeigth:CGFloat = 160.0
let iconViewHeigth:CGFloat = 90.0
